package com.example.qxfw.qxxx.service.impl;

import com.example.qxfw.common.entity.TownshipForecastProvince;
import com.example.qxfw.common.mapper.TownshipForecastProvinceMapperXml;
import com.example.qxfw.qxxx.service.XzybService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/8/10  星期四   10:40
 * @description : 此类用来
 ***************************************/
@Service
public class XzybServiceImpl implements XzybService {

    @Autowired
    private TownshipForecastProvinceMapperXml townshipForecastProvinceMapperXml;

    @Override
    public List<TownshipForecastProvince> getList(final String dateChar, final String timeChar, final Integer nTimes, final String city) {
        return townshipForecastProvinceMapperXml.getList(Timestamp.valueOf(dateChar), timeChar, nTimes, city);
    }

    @Override
    public List<TownshipForecastProvince> getMaxTime() {
        return townshipForecastProvinceMapperXml.getMaxTime();
    }
}
